package com.suzhuoke.ncpsy.service.impl;

import com.suzhuoke.ncpsy.dao.TpMapper;
import com.suzhuoke.ncpsy.model.Ncp;
import com.suzhuoke.ncpsy.model.NodeInfo;
import com.suzhuoke.ncpsy.model.Tp;
import com.suzhuoke.ncpsy.service.TpService;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 乔宏展
 * CreateTime 2020/6/22 17:38
 */
@Service("tpService")
public class TpServiceImpl implements TpService {
    @Resource
    private TpMapper tpMapper;

    @Override
    public Tp queryTpByid(Integer tId) {
        return tpMapper.queryTpByid(tId);
    }

    @Override
    public Ncp queryNcpByid(String nId) {
        return tpMapper.queryNcpByid(nId);
    }

    @Override
    public List<NodeInfo> queryNodeByQy(String qId, Integer state) {
        return tpMapper.queryNodeByQy(qId,state);
    }
}
